babl-cache: attempt to make things barely compile on win32
authorØyvind Kolås <pippin@gimp.org>
Tue, 15 Nov 2016 22:51:44 +0000 (23:51 +0100)
committerØyvind Kolås <pippin@gimp.org>
Tue, 15 Nov 2016 22:51:44 +0000 (23:51 +0100)
babl/babl-cache.c

index 35ae2602d1710ff92fc555f900fad2c3cb39403a..7f0699755668906fd7d8fb767dfd7912fb94e251 100644 (file)
 
 static const char *fish_cache_path (void)
 {
+#ifdef _WIN32  // XXX: fixme - make this work - and be a reasonable location
+               // on windows
+  return "C:\\babl.txt"; 
+#else
   // FIXME: need a location for this temporary file on win32
   struct stat stat_buf;
   static char resolved[4096];
@@ -51,6 +55,7 @@ static const char *fish_cache_path (void)
   free (ret);
 
   return resolved;
+#endif
 }
 
 static char *